package com.itheima.test;

import org.junit.Test;

public class Start {
    @Test
    public void test(){
        Demo1 demo1 = new Demo2(12,"wang");
        System.out.println(demo1.getAge());
        demo1.run();
        time(demo1);
    }

    private void time(Demo1 d){
        System.out.println(d);
    }
}
